<{includeq file="db:groups_header.html"}>
<div style="line-height: 22px; padding: 10px 0;">
	<{foreachq item=item key=id from=$categories}>
		<a href="<{xoAppUrl modules/groups/category.php?id=}><{$id}>"><{$item}></a>&nbsp;
	<{/foreach}>
</div>

<div style="text-align: right; padding: 5px 10px;"> 
	<span style="color: #999;"><{if $category.cat_name}> <{$category.cat_name}> (<{$category.cat_group_total}>) <{else}> 全部 <{/if}>&gt;&gt;</span>
	<a href="<{$groups_url}>/category.php?op=topic<{if $category.cat_id}>&amp;id=<{$category.cat_id}><{/if}>">主题</a> | 
	<a href="<{$groups_url}>/category.php?op=foot<{if $category.cat_id}>&amp;id=<{$category.cat_id}><{/if}>">来访</a> | 
	<a href="<{$groups_url}>/category.php?op=user<{if $category.cat_id}>&amp;id=<{$category.cat_id}><{/if}>">成员</a> | 
	<a href="<{$groups_url}>/category.php?op=time<{if $category.cat_id}>&amp;id=<{$category.cat_id}><{/if}>">新群</a> 
</div>

<{$pagenav}>
<div class="gp-list">
	<table width="100%" border="0" cellspacing="0">
		<{foreachq item=item from=$groups}>
		<tr class="<{cycle values='odd, even'}>">
			<td width="10%">
				<div style="padding: 5px 0; text-align: center;">
					<a href="<{xoAppUrl modules/groups/group.php?id=}><{$item.group_id}>">
						<img src="<{$smarty.const._GROUPS_LOGO_URL}><{$item.logo}>" alt="<{$item.group_name}>" />
					</a>
				</div>
			</td>
			<td valign="top">
				<div style="line-height: 18px; padding: 5px 0">
					<div>
						<a href="<{xoAppUrl modules/groups/group.php?id=}><{$item.group_id}>">
							<strong><{$item.group_name}></strong>
						</a>
						<small>(<a href="<{xoAppUrl modules/groups/group.php?o=m&id=}><{$item.group_id}>"><{$item.group_member_total}></a>)</small>
						&nbsp;<{$item.status}> 
					</div>
					<div style="color: #999;"><{$item.group_description}></div>
					<div>Tags: </div>
					<small style="color: #999;">
						<{$item.createtime}>
						创建者: <a href="<{$smarty.const._GROUPS_USERINFO_URL}><{$item.uid}>"><{$item.author_nickname}></a> 
						主题: <{$item.group_topic_total}> 
						回复: <{$item.group_reply_total}> 
					</small>
				</div>
			</td>
		</tr>
		<{/foreach}>
	</table>
</div>
<{$pagenav}>
